home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20031118-20041115
/
000058_m.poser@rz.uni-frankfurt.de_Wed Dec 10 12:42:54 2003.msg
< prev
next >
Wrap
Text File
|
2004-11-14
|
3KB
|
95 lines
Path: newsmaster.cc.columbia.edu!panix!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news-feed1.de1.concert.net!fu-berlin.de!uni-berlin.de!misterbrot.rz.uni-frankfurt.DE!not-for-mail
From: "Michael Poser" <m.poser@rz.uni-frankfurt.de>
Newsgroups: comp.protocols.kermit.misc
Subject: password query fails
Date: Wed, 10 Dec 2003 17:46:36 +0100
Lines: 79
Message-ID: <br7ila$761g$1@uni-berlin.de>
NNTP-Posting-Host: misterbrot.rz.uni-frankfurt.de (141.2.95.88)
X-Trace: news.uni-berlin.de 1071074795 235568 141.2.95.88 (10435)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14734
Hello,
fist of all, iam a kermit newbie.
I want to write a script that restarts every night the Accesspoints of our
University (round about
40). It seems to be easy, but i have a few problems:
The password query works a few times only , sometimes it works, sometimes it
fails (But if the
password query was successfull, the rest of the script works fine). I dont
know why (If i set a
pause between in+output it fails to 100 percent). If i take a look at
\v(input) it shows no
diferrence between a succesfull login or a bad login. It shows always:
<- It seems to be
strange to me, why is it so cryptic, why is it not "password:"??
OS -> AIX, C-Kermit 800209, here is my script:
#!/opt/bin/kermit +
# Restart mit Argumentenliste
# Logfile wird angelegt und geoeffnet
.filename := \v(home)command.log
fopen /append \%c \m(filename)
fwrite /line \%c \v(date) - \v(time) - Host=\%1 - \%2 \13
# Fehler Routine
define errmsg {
fwrite /line \%c \%1 \%2 \13
fclose \%c
close
exit
}
set input echo on
set exit warning off
clear
set host /nowait \%1
if fail errmsg Err_No_Verbindung
input 10 password:
if fail errmsg no_passwortprompt \v(input)
output mypwd\13
input 10 \fpattern(*admin]>)
if fail errmsg no_mainmenu \v(input)
output 3
input 10 \fpattern(*admin]>)
if fail errmsg no_configmenu \v(input)
output 5
input 10 "Are you sure [y/n] ? "
if fail errmsg no_restartprompt \v(input)
output y\13
fwrite /line \%c Success \v(input) \13
fclose \%c
close
clear
exit
Any Ideas?
Kind regards,
Michael Poser
--
Michael Poser,
Goethe Universitaet Frankfurt am Main
Hochschulrechenzentrum - Abteilung Netze
Germany